<template>
  <AppInfo :id="id"/>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
import { computed } from 'vue';
import AppInfo from './app-info.vue';

defineOptions({name: 'app-info'});
const router = useRouter();
const id = computed(() => {
  const {id} = router.currentRoute.value.params
  return parseInt(typeof id === 'string' ? id : '0');
});
</script>

<style lang="scss" scoped>

</style>
